package com.yixin.hospital.entity.dto.req.jobType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("编辑工作类型请求体")
@Data
public class JobTypeEditReqDTO {

    @ApiModelProperty("工作类型id")
    @NotNull(message = "工作类型id不能为空")
    private Long id;

    @ApiModelProperty("工作类型名称")
    @NotBlank(message = "工作类型名称不能为空")
    private String name;

}
